package org.wupuser.model;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.PrimaryKeyJoinColumn;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
public class User extends BaseTable {
	
	@Column(name = "username", nullable = false)
	private String username;
	
	@Column(name = "password", nullable = false)
	private String password;
	
	@ColumnDefault("''")
	@Column(name = "email", nullable = false)
	private String email;
	
	@Column(name = "gender", nullable = false)
	private Boolean gender = false;
	
	@Column(name = "avatar")
	private String avatar;
	
	@Column(name = "signatrue", length = 60)
	private String signatrue;
	
}